package com.example.smart.data;

import java.util.List;

public class AddressData {


    private Integer code;
    private String msg;
    private Integer time;
    private List<DataDTO> data;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getTime() {
        return time;
    }

    public void setTime(Integer time) {
        this.time = time;
    }

    public List<DataDTO> getData() {
        return data;
    }

    public void setData(List<DataDTO> data) {
        this.data = data;
    }

    public static class DataDTO {
        private String code;
        private String name;
        private List<ChildsDTO> childs;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public List<ChildsDTO> getChilds() {
            return childs;
        }

        public void setChilds(List<ChildsDTO> childs) {
            this.childs = childs;
        }

        public static class ChildsDTO {
            private String code;
            private String name;
            private List<ChildsDTO> childs;

            public String getCode() {
                return code;
            }

            public void setCode(String code) {
                this.code = code;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public List<ChildsDTO> getChilds() {
                return childs;
            }

            public void setChilds(List<ChildsDTO> childs) {
                this.childs = childs;
            }
        }
    }
}
